/**
 * 
 */
package com.shy.base.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.google.gson.annotations.Expose;

/**
 * <p>Title:BaseEntity </p>
 * <p>Description: </p>
 * <p>Company:ipebg </p> 
 * @author H2013788
 * @date 2019年8月8日
 */
@MappedSuperclass
public class BaseEntity implements Serializable{

	private static final long serialVersionUID = 1L;

    /**
	 * 主鍵
	 */
    @Expose
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)  
    @Column(name = "id")
	protected Integer id;
    
    /**
     * 状态
     */
    @Expose
    @Column(name = "status", columnDefinition="int default 1")
	protected Integer status;
    
    
    /**
     * 创建人
     */
    @Expose
    @Column(name = "create_user")
    protected String createUser;


    /**
     * 修改人
     */
    @Expose
    @Column(name = "update_user")
    protected String updateUser; 
    
    
    /**
     * 建立时间
     */
    @Expose
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time", updatable = false)
    protected Date createTime;
    

    /**
     * 编辑时间
     */
    @Expose
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time")
    protected Date updateTime;


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public Integer getStatus() {
		return status;
	}


	public void setStatus(Integer status) {
		this.status = status;
	}


	public String getCreateUser() {
		return createUser;
	}


	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}


	public String getUpdateUser() {
		return updateUser;
	}


	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}


	public Date getCreateTime() {
		return createTime;
	}


	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public Date getUpdateTime() {
		return updateTime;
	}


	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
    
	
}
